package com.rk.app.poll.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("poll")
public interface PollService extends RemoteService {
	Poll[] getAllActivePolls();
	
	Poll[] getAllPolls();
	
	Poll getPoll(String id);

	PollResponse[] getPollResponse(String id);

	String savePoll(Poll poll);
	
	String savePollResponse(PollResponse response);
	
	String getSignInURL(String uri);
}
